"""
@author: yinjx
@file: login.py
@time: 2023/8/3 19:38
"""
from flask import Blueprint, request
from config.settings import user_dict
from libs.response import generate_response

# login_bp = Blueprint("login_bp", __name__, url_prefix="/v1")
#
# @login_bp.route("/login2")
# def login():
#     user = request.json.get("username")
#     passwd = request.json.get("passwd")
#     local_user_passwd = user_dict.get(user)
#     if local_user_passwd and passwd == local_user_passwd:
#         return generate_response(message="login success")
#     return generate_response(message="login fail!", code=10001)